﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Deep_Talk_Converter.RenderTasks;

namespace Deep_Talk_Converter
{
    /// <summary>
    /// Interaction logic for SLUploadInfo.xaml
    /// </summary>
    public partial class SLUploadInfo : UserControl
    {
        private RenderSL _sl;
        private MainWindow _host;

        public SLUploadInfo(RenderSL sl, MainWindow host)
        {
            InitializeComponent();
            _sl = sl;
            _host = host;
        }

        /// <summary>
        /// Dude is ready to render! Lets rumble!
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Render_Click(object sender, RoutedEventArgs e)
        {
            _sl.SetAuth(SLID.Text, SLKey.Text);
            _sl.ProjectName = SLProjectName.Text;
            _host.StartRender();
        }
    }
}
